package com.YxyBackMange.Service.Ware.Impl;
import com.YxyBackMange.Entity.Ware.WareGoodsDetails;
import com.YxyBackMange.Mapper.Ware.WareGoodsDetailsMapper;
import com.YxyBackMange.Service.Ware.WareGoodsDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WareGoodsDetailsServiceImpl implements WareGoodsDetailsService{
	
	@Autowired
    private WareGoodsDetailsMapper wareGoodsDetailsMapper;
    
   @Override
   public WareGoodsDetails insertService(WareGoodsDetails wareGoodsDetails){
        wareGoodsDetailsMapper.insertSelective(wareGoodsDetails);
	   return wareGoodsDetails;
	   
   };
   @Override
   public WareGoodsDetails updateService(WareGoodsDetails wareGoodsDetails){
	     wareGoodsDetailsMapper.updateByPrimaryKeySelective(wareGoodsDetails);
        return wareGoodsDetails;
   };
    @Override
    public WareGoodsDetails update(WareGoodsDetails wareGoodsDetails) {
        wareGoodsDetailsMapper.updateByPrimaryKeySelective(wareGoodsDetails);
        return wareGoodsDetails;
    }
   @Override
   public WareGoodsDetails delete(WareGoodsDetails wareGoodsDetails){

	     wareGoodsDetailsMapper.delete(wareGoodsDetails);
        return wareGoodsDetails;
   };
    @Override
    public WareGoodsDetails insert(WareGoodsDetails wareGoodsDetails){

        wareGoodsDetailsMapper.insertSelective(wareGoodsDetails);
        return wareGoodsDetails;

        };
}
